From: Christoph Egger Date: Fri, 8 Jul 2011 07:30:56 +0000 (+0100) Subject: nestedsvm: allow l1 guest to use OSXSAVE X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~10069 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=f128d21688fc1dbd19b17517d6f94a23994df4fb;p=xen.git nestedsvm: allow l1 guest to use OSXSAVE Signed-off-by: Christoph Egger --- diff --git a/xen/arch/x86/hvm/svm/svmdebug.c b/xen/arch/x86/hvm/svm/svmdebug.c index c2f1abcabe..68e1c5a7d8 100644 --- a/xen/arch/x86/hvm/svm/svmdebug.c +++ b/xen/arch/x86/hvm/svm/svmdebug.c @@ -124,8 +124,13 @@ svm_vmcb_isvalid(const char *from, struct vmcb_struct *vmcb, PRINTF("CR3: MBZ bits are set (0x%"PRIx64")\n", vmcb->_cr3); } - if ((vmcb->_cr4 >> 11U) != 0) { - PRINTF("CR4: bits [63:11] are not zero (0x%"PRIx64")\n", + if ((vmcb->_cr4 >> 19U) != 0) { + PRINTF("CR4: bits [63:19] are not zero (0x%"PRIx64")\n", + vmcb->_cr4); + } + + if (((vmcb->_cr4 >> 11U) & 0x7fU) != 0) { + PRINTF("CR4: bits [17:11] are not zero (0x%"PRIx64")\n", vmcb->_cr4); }